package model;

import annotion.Column;
import annotion.Id;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description:
 * @Author one world
 * @Date 2020/9/21 0021 19:58
 */
public class RotationImg implements Serializable {
    @Id
    private int id;
    private String name;
    private String url;
    private Date date;
    private String href;

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public RotationImg(String name, String url, Date date) {
        this.name = name;
        this.url = url;
        this.date = date;
    }
    public RotationImg(){

    }

    @Override
    public String toString() {
        return "RotationImg{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", date=" + date +
                '}';
    }

    public RotationImg(String name, String url, Date date, String href) {
        this.name = name;
        this.url = url;
        this.date = date;
        this.href = href;
    }
}
